﻿using System;
using System.Threading.Tasks;
using NiuX.LightServer.Models;

namespace NiuX.LightServer.Handlers
{
    public class HttpHandler:IHttpHandler
    {
        public string Method { get; set; }

        public string Path { get; set; }

        public Func<Request, Response, Task> Handler { get; set; }

    }

    public interface IHttpHandler
    {
        public string Method { get; set; }

        public string Path { get; set; }

        public Func<Request, Response, Task> Handler { get; set; }    }
}
